const { DataTypes } = require('sequelize');
var { sequelize } = require('../sequelize.js');

const image = sequelize.define('image', {
    filename: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    mimetype: { // 文章简介
        type: DataTypes.STRING,
        allowNull: true,
    },
    path: {
        type: DataTypes.STRING,
        allowNull: false,
    },

}, {
    // Other model options go here
});
module.exports = image
